#pragma once

#ifndef LOG_EXPORTS
#define XLOG_API __declspec(dllimport)
#else
#define XLOG_API __declspec(dllexport)
#endif

#define XVERIFY(a) if (!(a)) xLog::PrintErrorCode(#a, __FILE__, __LINE__, ::GetLastError());

namespace xLog
{
    XLOG_API void PrintErrorCode(const char* linedesc, const char* filename, INT lineno, DWORD errcode);
}